<template>
  <div class="mine-wrapper">
    <login v-if="!userinfo.name" />
    <user v-else />
  </div>
</template>

<script>
import login from './login'
import user from './userInfo'
import { mapState } from 'vuex'
export default {
  components: { login, user },
  computed: {
    ...mapState(['userinfo'])
  }
}
</script>

<style>

</style>
